package gateway.mgt.runtime

import groovy.transform.ToString

@ToString(includePackage = false, includes = ["serviceId", "dateReceived"])
class RuntimeMetrics {

    String serviceId

    Date dateSent
    Date dateReceived

    Date dateCreated
    Date lastUpdated

    static belongsTo = [core: GatewayCore]

    static constraints = {
        core(nullable: false)
        serviceId(nullable: false, unique: true)
        dateSent(nullable: false)
        dateReceived(nullable: false)
        dateCreated()
        lastUpdated()
    }
}
